/*
 * Copyright (C), 2013-2017, 工人网
 * FileName: JsonResult.java
 * Author:   jgYang
 * Date:     2017年3月28日 下午9:53:34
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.dlg.commons.util;

import java.io.Serializable;
import java.util.List;

public class PageResult<T> implements Serializable {

	private static final long serialVersionUID = 2064585725450186495L;
	
	// 总数量
	private int total;
	// 总页数
	private int totalpage;

	private List<T> data;

	public PageResult(List<T> data,int total, int totalpage) {
		this.total = total;
		this.totalpage = totalpage;
		this.data = data;
	}

	public PageResult() {
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getTotalpage() {
		return totalpage;
	}

	public void setTotalpage(int totalpage) {
		this.totalpage = totalpage;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}
}